#include "xfile_crypt.h"
#include <iostream>
#include <string>

int main(int argc, char *argv[])
{
    std::string passwd = "123456";
    auto xfc = std::make_shared<XFileCrypt>();
    xfc->start("test.txt", "test_enc.txt", passwd, true);
    xfc->wait();
    auto xfd = std::make_shared<XFileCrypt>();
    xfd->start("test_enc.txt", "test_dec.txt", passwd, false);
    xfd->wait();
    
    return 0;
}
